import schoolList from '../config/school'

let getSchoolList = async (ctx, next) => {
  ctx.body = { code: 1, msg: '数据请求成功', data: schoolList }
}


let getSchool = async (ctx, next) => {

  const { schoolid } = ctx.request.body
  let data = schoolList.filter(item => item.schoolid === schoolid)
  ctx.body = { code: 1, msg: '数据请求成功', data }

}

export default {
  getSchoolList, getSchool
}